<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>后台登录</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="alternate icon" type="image/png" href="/mall/Public/images/favicon.png">
  <link rel="stylesheet" href="/mall/Public/css/amazeui.min.css"/>
  <script type="text/javascript" src="/mall/Public/js/jquery/1.9.1/jquery.min.js"></script>
  <script type="text/javascript" src="/mall/Public/js/Validform/Validform_v5.3.2.js"></script>
  <script type="text/javascript" src="/mall/Public/js/layer/layer.js"></script>
  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>
</head>
<body>
<div class="header">
  <div class="am-g">
    <h1><?php echo ($system_name); ?></h1>
    <p>Content Management System<br/>更方便，更快捷，更简单</p>
  </div>
  <hr />
</div>
<div class="am-g">
  <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
    <h3>登录</h3>
    <hr>
    <form method="post" class="am-form">
      <label for="username">用户名:</label>
      <input type="text" name="username" id="username" datatyp="*" nullmsg="请输入用户名" errormsg="用户名格式不正确"/>
      <br>
      <label for="password">密码:</label>
      <input type="password" name="password" id="password" datatyp="*" nullmsg="请输入密码" errormsg="密码格式不正确"/>
      <br>
      <label for="remember-me">
        <input id="remember-me" type="checkbox">
        记住密码
      </label>
      <br />
      <div class="am-cf">
        <input type="submit" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
        <a href="" class="am-btn am-btn-default am-btn-sm am-fr">忘记密码 ^_^?</a>
      </div>
    </form>
    <hr>
    <p><?php echo ($system_name); ?> V1.0(test).</p>
  </div>
</div>
<script type="text/javascript">
    $(function(){
        $('form').Validform({
            tiptype:function(msg,o,cssctl){
                if(o.type == 3){
                    layer.msg(msg,{icon:0});
                }
            },
            ajaxPost:true,
            callback:function(data){
                if(data.status == 'y'){
                    layer.msg(data.info,{icon:1,time: 2000},function(){location.href=data.url;});
                }else{
                    layer.msg(data.info,{icon:0});
                }
            }
        })
    })
</script>
</body>
</html>